/** \file
* Implementation of the basic Twitter element class.
* This file is part of Chorus, available at
* http://code.google.com/p/chorus-twitter/ . This file and all associated files
* and derivative works are bound by the terms of the LGPL 3.0 license,
* available at http://www.gnu.org/licenses/lgpl-3.0-standalone.html .
* \par Subversion URL:
* \$URL: http://chorus-twitter.googlecode.com/svn/branches/cpp/src/xml/XmlElement.cpp $
* \version \$Rev: 153 $
* \date    \$Date: 2010-04-06 07:43:42 +0000 (Tue, 06 Apr 2010) $
*/

#include "config.h"

#include "XmlElement.hpp"

using namespace std;

XmlElement::XmlElement()
{
	insertProp("id", &prop_id);
}

XmlElement::~XmlElement()
{
}

namespace std
{
	template <>
	bool less<const char*>::operator()(const char *const &rleft,
		const char *const &rright) const
	{
		const char *left = rleft;
		const char *right = rright;
		for (;; left++, right++)
		{
			const char l = *left, r = *right;
			if (l < r)
				return true;
			if (l > r || !l)
				return false;
		}
	}
}
